package designmode.headfirst.observe.pull;

import java.util.Observable;

/**
 * 新闻主题
 * <p>Filename: designmode.headfirst.observe.pull.News.java</p>
 * <p>Date: 2020-09-25 10:09.</p>
 *
 * @author <a href="mailto:liufuguo@qianmi.com">OF3581-刘富国</a>
 * @version 0.1.0
 */
public class News extends Observable {

    private String newsDetail;

    public void change() {
        super.setChanged();
        super.notifyObservers();
    }

    public String getNewsDetail() {
        return newsDetail;
    }

    public void setNewsDetail(String newsDetail) {
        this.newsDetail = newsDetail;
    }
}
